// 导入axios
import axios from 'axios'
// axios基地址配置
axios.defaults.baseURL='https://autumnfish.cn/'
// 配置axios 
function getBanner(){
    return  axios({
        url:'banner?sd'+Math.random()*999
    })
}
function getSong(){
     return axios({
        url:'personalized/newsong?dsad'+Math.random()*999
    })
}
function getSongList(params){
    return axios({
        url:'search',
        params:params
    })
}
function getSongUrl(params){
    return axios({
        url:'song/url',
        params:params
    })
}
function getSongIfon(params){
    return axios({
        url:"song/detail",
         params:params
    })
}
function getMvList(){
    return  axios({
        url:'mv/all?ds='+Math.random()*9999
    })
}
function getSearchMv(params){
    return  axios({
        url:"search",
        params:params
      })    
}
function getMvUrl(params){
     return  axios({
        url:'mv/url',
        params:params
    })
}
function getMvIfon(params){
    return  axios({
        url:'mv/detail',
        params:params
    })
}
export {    
    getBanner,
    getSong,
    getSongList,
    getSongUrl,
    getSongIfon,
    getMvList,
    getSearchMv,
    getMvUrl,
    getMvIfon
    
}